package rocky.corewademo.form;

import rocky.portlet.BaseInForm;

public class ListForm extends BaseInForm {
    private String mode;
    private String result;
    private boolean checkedStd;
    private boolean checkedAdv;
    
    public boolean isCheckedAdv() {
        return checkedAdv;
    }

    public void setCheckedAdv(boolean checkedAdv) {
        this.checkedAdv = checkedAdv;
    }

    public boolean isCheckedStd() {
        return checkedStd;
    }
    
    public void setCheckedStd(boolean checkedStd) {
        this.checkedStd = checkedStd;
    }
    
    public String getStatusStdMode() {
        return (checkedStd ? "checked": "");
    }
    
    public String getStatusAdvMode() {
        return (checkedAdv ? "checked": "");
    }
    
    public String getMode() {
        return mode;
    }
    public void setMode(String mode) {
        this.mode = mode;
        if ("Std".equals(mode)) {
            checkedStd = true;
        } else if ("Adv".equals(mode)) {
            checkedAdv = true;
        }
    }
    public String getResult() {
        return result;
    }
    public void setResult(String result) {
        this.result = result;
    }
}
